package com.example.b_308.myapplication.model.base;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by xxtves on 2017/11/15.
 */

public class BaseCompany extends BaseModel implements Serializable {

    String id;
    String name;
    String addres;
    String telephone;
    String count;
    String create_time;
    List<Department> departments;

    public String getId() {
        if (null == id)
            id =getStr("id");
        return id;
    }

    public String getName() {
        if (null == name)
            id =getStr("name");
        return name;
    }

    public String getAddres() {
        if (null == addres)
            id =getStr("addres");
        return addres;
    }

    public String getTelephone() {
        if (null == telephone)
            id =getStr("telephone");
        return telephone;
    }

    public String getCount() {
        if (null == count)
            id =getStr("count");
        return count;
    }

    public String getCreate_time() {
        if (null == create_time)
            id =getStr("create_time");
        return create_time;
    }

    public List<Department> getDepartments() {
        if (null == departments)
            departments =new ArrayList<>();

        return departments;
    }
}
